updating oE db_record_key
db_record_key
include eds.e namespace eds public function db_record_key(integer key_location, object table_name = current_table_name)
returns the key of a record given an index.
Parameters:
- key_location : an integer, the index of the record the key is being requested.
- table_name : optional table name to get record key from.
Returns An object, the key of the record being queried by index.
Note:
This function calls fatal and returns a value of -1 if an error prevented the correct data being returned.
Errors:
If the current table is not defined, or if the record index is invalid, an error will occur.
Comments:
Each record in a Euphoria database consists of a key portion and a data portion. Each of these can be any Euphoria atom or sequence.
Example 1:
puts(1, "The 6th record has key value: ") ? db_record_key(6)
See Also:
Not Categorized, Please Help
|